<!--{template common/header}-->

<!-- header start -->
<div class="bz-mobile">
	<div class="bz-mobile-left bzleft">
		<a class="iconfont icon-guanzhu"></a>
	</div>
	<h2>
        <ul>
			<li{if $_GET[ 'mod']=='index'} class="a" {/if}>
				<a href="portal.php?mod=index&mobile=2">最新</a>
			</li>
			<li{if $_GET[ 'type']=='activity' } class="a" {/if}>
				<a href="misc.php?mod=ranklist&type=activity&view=heats&orderby=all">{lang activity}</a>
			</li>
        </ul>
	</h2>
	<div class="bz-mobile-right">
		<a href="<!--{if $_GET['mod'] == 'forumdisplay' || $_GET['mod'] == 'viewthread'}-->forum.php?mod=post&action=newthread&fid=$_G['fid']<!--{else}-->forum.php?mod=misc&action=nav<!--{/if}-->" class="iconfont icon-fatie"></a>
	</div>
</div>
<!--{template common/bzlnav}-->
<div class="banzhuan-top"></div>
<!-- header end -->

<div class="cl">
	<div class="bz-actlist">
			<div class="bz-guide-appl bz-bg-fff">
				<ul id="before" class="tbmu">
					<li><a href="misc.php?mod=ranklist&type=activity&view=$_GET[view]&orderby=thismonth" id="2592000" {if $orderby == 'thismonth'}class="xw1"{/if} />{lang ranklist_month}</a></li>
					<li><a href="misc.php?mod=ranklist&type=activity&view=$_GET[view]&orderby=thisweek" id="604800" {if $orderby == 'thisweek'}class="xw1"{/if} />{lang ranklist_week}</a></li>
					<li><a href="misc.php?mod=ranklist&type=activity&view=$_GET[view]&orderby=today" id="86400" {if $orderby == 'today'}class="xw1"{/if} />{lang ranklist_today}</a></li>
					<li><a href="misc.php?mod=ranklist&type=activity&view=$_GET[view]&orderby=all" id="all" {if $orderby == 'all'}class="xw1"{/if} />{lang all}</a></li>
				</ul>
			</div>
			<div class="banzhuan-top"></div>
			<!--{if $activitylist}-->
				<table cellpadding="0" cellspacing="0" class="acl bz-bg-fff">
				<!--{loop $activitylist $activity}-->
					<tr style="border-bottom: 1px solid #EFEFEF;">
						<td class="bz-p10">
							<h4><a href="forum.php?mod=viewthread&tid=$activity['tid']">$activity['subject']</a></h4>
							<p style="line-height: 24px; color: #FF9900; font-size: 12px;">
								<span style="background: #FF9900; color: #FFFFFF; padding: 1px 5px; line-height: 20px; font-size: 12px; border-radius: 2px;">$activity['class']</span> 
								{lang ranklist_activity_start} $activity['starttimefrom']<!--{if $activity['starttimeto']}--> - $activity['starttimeto']<!--{/if}--> 
								<!--{if $activity['has_expiration']}-->
								    <span>{lang ranklist_activity_end}</span>
								<!--{/if}-->
							</p>
							<a href="forum.php?mod=viewthread&tid=$activity['tid']">
								<!--{if $activity['aid']}-->
								<img src="$activity['attachurl']" width="100%" height="150" style="object-fit: cover; border-radius: 3px;" />
								<!--{else}-->
								<img src="{IMGDIR}/nophotosmall.gif" alt="nophoto" width="100%" height="120" style="object-fit: cover;" />
								<!--{/if}-->
							</a>
							<p class="color-c" style="font-size: 12px;">
								<em>{lang have} $activity['applynumber'] {lang join}</em>
								<em class="y">$activity['replies'] {lang message}</em>
							</p>
						</td>
					</tr>
				<!--{/loop}-->
				</table>
				
				<div class="cl">$multi</div>
			<!--{else}-->
				<div class="guide-no">
					<p class="iconfont icon-quxiaoguanzhu color-b" style="font-size: 50px;"></p>
					<p class="color-b">{lang none_data}</p>
				</div>				
			<!--{/if}-->
			<div class="notice bz-p10 bz-bg-fff color-c" style="margin-top: 10px;">{lang ranklist_update}</div>
		</div>

</div>

<!--{template common/footer}-->